﻿using System;
using Hx.Domain.Model;
using Hx.Infrastructure.Common;

namespace Hx.Domain.Repositories
{
    public interface IArticleRepository : IRepository<Article>
    {
        PagedResult<Article> GetAllArticles(int pageIndex, int pageSize);
        PagedResult<Article> GetUserArticles(Guid authorId, int pageIndex, int pageSize);
        PagedResult<Article> GetUserArticlesByCategoryId(Guid authorId, Guid categoryId, int pageIndex, int pageSize);
        PagedResult<Article> GetArticlesByCategoryId(Guid categoryId, int pageIndex, int pageSize);
        Article GetArticleById(Guid articleId);
        bool FakeDelete(Guid id);
    }
}